//
//  RGMeWalletInterfaceBuilder.m
//  RedGrass
//
//  Created by wuyine on 2019/1/14.
//  Copyright © 2019年 hongcaosp. All rights reserved.
//

#import "RGMeWalletInterfaceBuilder.h"

@implementation RGMeWalletInterfaceBuilder
//钱包余额
+(NSDictionary *)buildUserWallet {
    NSMutableDictionary *dic = [HttpInterfaceBulider buildBaseParams];
    [dic setObject:SafeStr([RGUserInfoModel getUserInfo].token) forKey:@"token"];
    return [dic copy];
}

//套餐充值金额
+(NSDictionary *)buildRechargeListWithOperationType:(Wallet_OperationType)type {
    NSMutableDictionary *dic = [HttpInterfaceBulider buildBaseParams];
    [dic setObject:SafeStr([RGUserInfoModel getUserInfo].token) forKey:@"token"];
    [dic setObject:@(type) forKey:@"operationType"];
    return [dic copy];
}

//充值、提现、收入记录
+(NSDictionary *)buildRechargeRecordWithRecordType:(RecordType)type pageNumber:(NSInteger)pageNumber pageSize:(NSInteger)pageSize {
    NSMutableDictionary *dic = [HttpInterfaceBulider buildBaseParams];
    [dic setObject:SafeStr([RGUserInfoModel getUserInfo].token) forKey:@"token"];
    [dic setObject:@(type) forKey:@"type"];
    [dic setObject:@(pageNumber) forKey:@"pageNumber"];
    [dic setObject:@(pageSize) forKey:@"pageSize"];
    return [dic copy];
}
@end
